package Panels;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Date;

import javax.swing.JButton;

import componentes.labtext;
import componentes.panelconfondo;

public class PanelGenerico extends panelconfondo implements ActionListener {
	GridBagConstraints gbc;
	JButton bcontinuar,breset;
	int panel;
	
public PanelGenerico(){
	super.setimagen("/recursos/cine1.jpg");
	panel = 1;
	this.dibujar();
}

public PanelGenerico(int idsala,Date fechainicio,Date fechafin){
	super.setimagen("/recursos/cine1.jpg");
	panel = 2;
	this.dibujar();
}
	

	public void actionPerformed(ActionEvent arg0) {
		
		
	}

public void dibujar(){
	this.setLayout(new GridBagLayout());
	idsala = new labtext(" Id Sala : ",2,1,4);
    gbc = new GridBagConstraints(0, 0, 1, 1, 0, 0,
			GridBagConstraints.FIRST_LINE_START, GridBagConstraints.BOTH, new Insets(
					5, 5, 5, 5), 0, 0);
	this.add(idsala,gbc);
	
	
	
}
	
	
	
}